package grailsforum

class Tag {

    String name

    static constraints = {
        name(nullable: false, blank: false, minLength: 2)
    }

    static hasMany = [threadTags : ThreadTag]
    // static belongsTo = [threads: Thread]

    def String toString(){
        return name
    }

}
